package com.gz.entity;

public class Person {
    private Integer id;
    private String name;

    //这里因为idencard表的card_id与id是外键关系
    private IdenCard idenCard;

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", idenCard=" + idenCard +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public IdenCard getIdenCard() {
        return idenCard;
    }

    public void setIdenCard(IdenCard idenCard) {
        this.idenCard = idenCard;
    }
}
